<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script src="vue.js" type="text/javascript" charset="utf-8"></script>
	</head>
	<body>
		<!-- if-else语法 -->
		<div id="demo">
			<div v-if="type=='A'">A</div>
			<div v-else-if="type=='B'">B</div>
			<div v-else>C</div>
		</div>
		<script type="text/javascript">
	
		var vm=new Vue({
			el:"#demo",
			data:{
				type:'A'
			}
		})
		</script>

	</body>
</html>
